<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Timelines: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'main' %>
  
  <%= javascript_include_tag :defaults %>


</head>
 <body  onload="onLoad();" onresize="onResize();">

 <div id="spinner" class="spinner" style="display:none;">
           <%=  image_tag "spinner.gif" %>
 </div>
 <div class="logo">
           <%=  image_tag "grails_logo.jpg" %>
 </div>
   <div>
   <p>
    Login Button</p>
  <fb:login-button>
  </fb:login-button>
  <h1>
    Client-side XFBML, rendered directly with JS</h1>
  <p>
    Demo using different FBML tags
  </p>
  <p>
    <fb:name uid="<%=@facebook_user.uid%>" capitalize="true" shownetwork="true">
    </fb:name>
    <fb:profile-pic uid="<%=@facebook_user.uid%>" facebook-logo="false" size="thumb">
        </fb:profile-pic>
<fb:user-status uid="<%=@facebook_user.uid%>" linked="true"></fb:user-status>
  </p>
  </div>
<% if flash[:notice] -%>
      <div class="message"><%= flash[:notice] %></div>
 <% end -%>

<%= yield %>

        <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"
    type="text/javascript"></script>

  <script type="text/javascript">
    FB_RequireFeatures(["XFBML"], function()
    {
      FB.Facebook.init("e0f81c4c17332d631158adaa24bb340f", "xd_receiver.htm");
    });
  </script>
</body>


</html>
